# from captcha.image import ImageCaptcha
# def get_code(uuid):
#     name, text, image = captcha.generate_captcha()
#     res = make_response(image)
#     res.headers['Content-Type'] = 'iamge/jpg'
#     r.set_str(uuid,text)
#     return res